<div class="modal fade user_group_edit" id="<%=@group.id %>_user_group_edit">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">
          <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
        </button>
        <h4 class="modal-title">编辑角色</h4>
      </div>
      <div class="modal-body">
        <div class="alert alert-warning notify" role="alert"></div>
        <form role="form" action="<%=admins_group_path(@group) %>" data-value-id="<%=@group.id %>">
          <div class="form-group">
            <label>名称</label>
            <input type="text" name="group[name]" class="form-control name" placeholder="名称" value="<%=@group.name %>">
          </div>
          <div class="form-group">
            <%=render partial: "permission", locals: {permissions: @permissions, owner_permissions: @group.permissions} %>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default cancel" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary save" data-value-id="<%=@group.id %>" >保存</button>
      </div>
    </div>
  </div>
</div>